#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
from cal import Cal


class TestAdd(unittest.TestCase):
    @classmethod
    def setUpClass(cls) -> None:
        cls.cal = Cal()

    def test_add01(self):
        result = self.cal.add(1, 1)
        self.assertEqual(result, 2)

    def test_add02(self):
        result = self.cal.add(1.123, 3.1415)
        self.assertEqual(result, 4.2645)

    def test_add03(self):
        result = self.cal.add(6, -1)
        self.assertEqual(result, 5)


if __name__ == '__main__':
    unittest.main()
